package com.bigdatastudio.openfeign.fallback;

import com.bigdatastudio.common.Utils.R;
import com.bigdatastudio.common.dto.UserParm;
import com.bigdatastudio.openfeign.client.AdminClient;
import org.springframework.stereotype.Component;

/**
 * @author xiao_jie
 * @date 2022/11/6 20:32
 * @describe this is a text
 */

@Component
public class AdminClientFallBack implements AdminClient {

    @Override
    public R list(UserParm userParm) {
        return R.error("获取失败！！");
    }

    @Override
    public R getUser(Integer id) {
        return R.error("该用户信息获取失败！！");
    }
}
